<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Menu;
use Illuminate\Http\Request;

class MenusController extends Controller
{
    //
    public function list(Request $request)
    {
        Menu::with('children.children')->where('pid',0)->orderBy('sort','asc')->get();
    }
}
